Facebook\Tests\SignedRequestTest S

Total Complexity 10
Dependencies 2
Dependents 0
Total lines 111
Lines of code 51
Logical lines of code 31
Comment lines 15
Methods 10
Properties 4

Methods 10

Method Rating Maintainability Complexity Lines of code
setUp()
S
79 1 3
testAValidSignedRequestCanBeCreated()
S
65 1 9
testInvalidSignedRequestsWillFailFormattingValidation()
S
80 1 3
testBase64EncodingIsUrlSafe()
S
72 1 5
testAUrlSafeBase64EncodedStringCanBeDecoded()
S
72 1 5
testAnImproperlyEncodedSignatureWillThrowAnException()
S
79 1 3
testAnImproperlyEncodedPayloadWillThrowAnException()
S
79 1 3
testNonApprovedAlgorithmsWillThrowAnException()
S
68 1 7
testAsRawSignedRequestCanBeValidatedAndDecoded()
S
71 1 5
testARawSignedRequestCanBeValidatedAndDecoded()
S
66 1 8